<html>
<body>
<pre>
<?php

require_once("Bootstrap.php");

$gd = new raster();
$gd->createResource(500,500);
$black = $gd->createColour(0,0,0);
$gd->drawTri(new cPoint3(50,50,0),new cPoint3(25,75,50),new cPoint3(50,100,-50),$black);
$gd->drawTri(new cPoint3(50,50,0),new cPoint3(75,75,0),new cPoint3(50,100,0),$black);
$gd->render('out.png');

?>
</pre>
<br/><br/>
<img src="out.png"/>
</body>
</html>